Fedora 14
Sponsored Link

NIS Client
2010/11/05
  Configure on NIS clients in order to share users' accounts.
[root@www ~]#
yum -y install ypbind rpcbind


[root@www ~]#
vi /etc/sysconfig/network


NETWORKING=yes
HOSTNAME=www.srv.world
# add at the last line

NISDOMAIN=srv.world


[root@www ~]#
vi /etc/sysconfig/authconfig


USENIS=
yes
# line 19: change


[root@www ~]#
vi /etc/yp.conf


# add at the last line ( [domain] server [NIS server] )

domain srv.world server dlp.srv.world


[root@www ~]#
vi /etc/nsswitch.conf


passwd:
files
nis
# line 33: add

shadow:
files
nis
# add

group:
files
nis
# add


[root@www ~]#
chkconfig rpcbind on

[root@www ~]#
chkconfig ypbind on

[root@www ~]#
shutdown -r now


www.srv.world login:
fedora
# user on NIS

Password:
# password

Last login: Sat Nov 6 07:23:01 on ttyS0
No directory /home/fedora!
Logging in with home = "/".
-bash-4.1$
# logined

-bash-4.1$
10.0.0.30
-bash-4.1$
ypcat passwd

fedora:x:500:500::/home/fedora:/bin/bash
nfsnobody:x:4294967294:4294967294:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
 
Tweet